<?PHP

error_reporting(E_ALL);

define("ONE_SECOND",            1);
define("ONE_MINUTE",            60 	* ONE_SECOND);
define("ONE_HOUR",              60 	* ONE_MINUTE);
define("ONE_DAY",               24 	* ONE_HOUR);
define("ONE_WEEK",              7 	* ONE_DAY);
define("ONE_YEAR",              365 * ONE_DAY);

define("EVENT_ADD_PAGE",        "A" );
define("EVENT_DELETE_PAGE",     "DL" );
define("EVENT_PM",              "PM" );
define("EVENT_CHECK_OUT",       "CO" );
define("EVENT_SAVE",            "S" );
define("EVENT_SAVE_TEMP",       "ST" );
define("EVENT_UNCHECK_OUT",     "RT" );
define("EVENT_REOPEN",          "RO" );

define("ROOT_PATH",          "C:/bin/xampp/htdocs");
define("PROJECTS_PATH",         ROOT_PATH."/projects");
define("PROJECTS_URL",			"http://localhost/projects");
define("ROOT_URL",           "http://localhost");
// define("PUBLIC_URL",         "http://localhost");
// define("CODE_URL",              ROOT_URL);
// define("FORUM_URL",             "http://www.dp-50.net/?q=forum");
define("FORUMS_URL",            "http://www.dp-50.net");
// define("FORUM_PATH",            "/forum");
define("REGISTER_URL",          FORUMS_URL);
define("IS_TESTING",            false);
define("IS_CLASSIC",         false);
define("GRAPHICS_URL",          ROOT_URL."/graphics");
define("LOCALES_PATH",          ROOT_PATH."/locale");
define("DYN_LOCALES_DIR",       LOCALES_PATH);
define("LOCALES_URL",           ROOT_URL."/locale");
define("SYSTEM_LOCALES_DIR",    "/locales");

define("FAQ_URL",               ROOT_URL."/faq.php");
define("PROOF_GUIDELINES_URL",  FAQ_URL);
define("SMOOTH_URL",            ROOT_URL."/smooth.php");

define("STATS_PATH",            ROOT_URL."/stats");
// define("IMAGES_URL",            GRAPHICS_URL);
define("UPLOADS_PATH",          "/bin/xampp/uploads");
// define("UPLOADS_DIR",           "/var/www/dp50/uploads");
define("UPLOAD_MODE_LOCAL",     true);
define("UPLOADS_FTP_URL",       "ftp.dp-50.net");
define("UPLOADS_URL",           "ftp://www.dp-50.net");
define("UPLOADS_ACCOUNT",       "dpscans");
define("UPLOADS_PASSWORD",      "image$");
define("TEMPFILE_DIRECTORY",    "/temp");

define("RESET_PASSWORD_URL",    FORUMS_URL);

define("HELP_EMAIL_ADDRESS",    "help@dp-50.com");
define("GENERAL_HELP_EMAIL_ADDR", HELP_EMAIL_ADDRESS);
define("SITE_MANAGER_EMAIL_ADDR", HELP_EMAIL_ADDRESS);
define("AUTO_EMAIL_ADDR",       GENERAL_HELP_EMAIL_ADDR);
define("DPEU_URL",              "http://dp.rastko.net");

// define("BEGINNERS_FORUMS_URL",   "/forum/viewforum.php?f=<<BEGIN_FORUMS_INDEX>>");

define("USER_ANONYMOUS",		"anonymous");
define("USE_PHP_SESSIONS",      true);
define("COOKIE_LIFETIME",       ONE_DAY);
define("COOKIE_ENCRYPTION_KEY", "akdgao7wnkezqo390akdlal");
define("CHARSET",               "UTF8");
define("BB_POSTS_TABLE_NAME",   "phpbb3.posts");
define("BB_DATABASE_NAME",      "phpbb3");
define("BB_USER_TABLE_NAME",    "phpbb3.users");
define("BB_SESSIONS_TABLE_NAME","phpbb3.sessions");

define('DOCTYPE',               '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">');

define("EMAIL_ADDRESS_MAX_LEN", 50);
define("USER_NAME_MAX_LENGTH",  25);
define("IMAGE_FIELD_LEN",       12);
define("TAB_SIZE",              4);

// define("URL_HOME",              DP_PUBLIC_URL);
define("URL_DEFAULT",           ROOT_URL."/index.php");
// define("URL_ACTIVITY_HUB",      ROOT_URL."/hub.php");
define("URL_PROJECTMGR",        ROOT_URL."/pmprojects.php");
define("URL_PROJECTS_AVAIL",    ROOT_URL."/projavail.php");
define("URL_PROJECT",           ROOT_URL."/project.php");
define("URL_PROJECT_PAGES",     ROOT_URL."/task.php");
define("URL_USER_PROJECT_PAGES", ROOT_URL."/myproject.php");
define("URL_EDITPROJECT",       ROOT_URL."/editproject.php");
define("URL_PROOF",             ROOT_URL."/proof.php");
define("URL_FAQ",               ROOT_URL."/faq_central.php");
define("URL_LOGOUT",            ROOT_URL."/logout.php");
define("URL_MY_PROJECTS",       ROOT_URL."/myprojects.php");
define("URL_MY_PREFS",          ROOT_URL."/prefs.php");
define("URL_IMAGES_INDEX",      ROOT_URL."/images_index.php");
define("URL_EDIT_PAGE",         ROOT_URL."/editpage.php");
define("URL_DIFF_VIEW",         ROOT_URL."/diffview.php");

define("URL_INBOX",             FORUMS_URL."/privmsg.php?folder=inbox");

define("HREF_PROJECT_MGR",              ROOT_URL."/pmprojects.php");
define("HREF_PROJECT_MGR_SHOW_USER",    ROOT_URL."/projectmgr.php?show=active");
define("HREF_PROJECT_MGR_SHOW_ACTIVE",  ROOT_URL."/projectmgr.php?show=all");
define("HREF_PROJECT_MGR_CREATE_NEW",   ROOT_URL."/editproject.php?pgaction=create");
define("HREF_PROJECT_MGR_SHOW_SITE",    ROOT_URL."/projectmgr.php?show=site");
define("HREF_PROJECT_MGR_SEARCH",       ROOT_URL."/projectmgr.php?show=search");
define("HREF_PROJECT_DETAIL",           ROOT_URL."/project_detail.php");
define("HREF_PROJECT_EDIT",             ROOT_URL."/editproject.php?pgaction=edit");
define("HREF_USER_HOME",                ROOT_URL."/index.php");
define("WIKI_URL",                      null);
// define("HREF_PAGE_TASK",                DP_ROOT_URL."/editpage.php");
// define("HREF_PAGE_TASK_TEXT",           DP_ROOT_URL."/fratext.php");
// define("HREF_PAGE_TASK_CTRL",           DP_ROOT_URL."/fractl.php");

include_once "pg.inc";

// If the gettext extension is compiled into PHP, then the function named '_'
// (an alias for 'gettext') will be defined.
// If it's not defined (e.g., on dproofreaders.sourceforge.net),
// define it to simply return its argument.
if(! function_exists('_')) {
    function _($str) { return $str; }
}
if(! function_exists('__')) {
    function __($str1, $str2) { return "$str1 [$str2]"; }
}
/*
if(! function_exists('lang_dir')) {
    function lang_dir() { return ""; }
}
*/
?>
